package com.danico.danicoproject.skills;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;
import com.badlogic.gdx.math.Vector2;

public class Fireball extends Spell{
	
	public Fireball(float x, float y){
		
		position = new Vector2(x,y);
		damage = 1;
		destination = new Vector2(Gdx.input.getX(), Gdx.graphics.getHeight() - Gdx.input.getY());
		direction = new Vector2(destination.x - position.x, destination.y - position.y).nor();
		type = "ball";
		speed = 5;
		particle = new ParticleEffect();
	    particle.load(Gdx.files.internal("data/fire.p"), Gdx.files.internal("data"));
	}
}
